package com.tjdx.projectsubmission.controller;

import com.tjdx.projectsubmission.db.entity.Section;
import com.tjdx.projectsubmission.service.SectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/section")
public class SectionController {


    @Autowired
    private SectionService sectionService;

    /**
     * 获取所有标段列表
     * @return
     */
    @GetMapping("/getSectionList")
    public List<Section> getSectionList(){
        List<Section> list = sectionService.getSectionList();
        return list;
    }






}
